import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/pages/index/index'
import textCheck from '@/components/pages/textCheck/textCheck'
import urlCheck from '@/components/pages/urlCheck/urlCheck'
import urlResult from '@/components/pages/urlCheck/urlResult'
import imgCheck from '@/components/pages/imgCheck/imgCheck'
import imgResult from '@/components/pages/imgCheck/imgResult'
import imgResultList from '@/components/pages/imgCheck/imgResultList'
import shopCheck from '@/components/pages/shopCheck/shopCheck'
import shopResult from '@/components/pages/shopCheck/shopResult'
import setting from '@/components/pages/setting/setting'
import settingDetail from '@/components/pages/setting/settingDetail'
import record from '@/components/pages/record/record'
import recordDetail from '@/components/pages/record/recordDetail'



Vue.use(Router)

export default new Router({
	mode: 'history',
	routes: [
	    {
	      path: '/',
	      name: '/',
	      component: index
	    },
	    {//文字检测路由
	      path: '/textCheck',
	      name: 'textCheck',
	      component: textCheck
	    },
	    {//网站检测路由
	      path: '/urlCheck',
	      name: 'urlCheck',
	      component: urlCheck
	    },
	    {//网站检测结果路由
	      path: '/urlResult',
	      name: 'urlResult',
	      component: urlResult
	    },
	    {//图片检测路由
	      path: '/imgCheck',
	      name: 'imgCheck',
	      component: imgCheck
	    },
	    {//图片检测结果路由
	      path: '/imgResult',
	      name: 'imgResult',
	      component: imgResult
	    },
	    {//图片检测结果路由
	      path: '/imgResultList',
	      name: 'imgResultList',
	      component: imgResultList
	    },
	    {//店铺检测路由
	      path: '/shopCheck',
	      name: 'shopCheck',
	      component: shopCheck
	    },
	    {//店铺检测结果路由
	      path: '/shopResult',
	      name: 'shopResult',
	      component: shopResult
	    },
	    {//设置列表
	      path: '/setting',
	      name: 'setting',
	      component: setting
	    },
	    {//设置详情
	      path: '/settingDetail',
	      name: 'settingDetail',
	      component: settingDetail
	    },
	    {//记录
	      path: '/record',
	      name: 'record',
	      component: record
	    },
	    {//记录详情
	      path: '/recordDetail',
	      name: 'recordDetail',
	      component: recordDetail
	    },
	]
})
